package com.kang.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kang.entity.Label;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface LabelService extends IService<Label> {

    List<Label> findNodes();

    Label findLabelById(Integer id);

    Integer insertLabel(Label label, HttpServletRequest request) throws Exception;

    Integer deleteLabel(Integer id);

    Integer updateLabel(Label label, HttpServletRequest request) throws Exception;

    List<Label> getLabelByType(Integer type);
}
